package com.clinic.entity.type;

import java.util.ArrayList;
import java.util.List;

public enum AppointmentTime {
	PM_6_00(600, "6:00"),
	PM_6_15(615, "6:15"),
	PM_6_30(630, "6:30"),
	PM_6_45(645, "6:45"),
	PM_7_00(700, "7:00"),
	PM_7_15(715, "7:15"),
	PM_7_30(730, "7:30"),
	PM_7_45(745, "7:45"),
	PM_8_00(800, "8:00"),
	PM_8_15(815, "8:15"),
	PM_8_30(830, "8:30"),
	PM_8_45(845, "8:45"),
	PM_9_00(900, "9:00"),
	PM_9_15(915, "9:15"),;
	
	private String label;
	private long id;
	
	private AppointmentTime(long id, String label) {
		this.label = label;
		this.id = id;
	}

	public String getLabel() {
		return label;
	}	
	
	public long getId() {
		return id;
	}

	public static List<String> getLabelList() {
		List<String> result =  new ArrayList<>();
		for(AppointmentTime t : AppointmentTime.values()) {
			result.add(t.getLabel().toString());
		}
		return result;
	}
	
}
